<?php
/**
 * Core_Data_Xmlns 
 * Remove any attribute starting with "on" or xmlns
 *
 * @author Adrian Stolarski
 */
class Core_Data_Xmlns implements Core_Data_Xssfilterable {
    
    public function xss_filter($value) {
        $value = preg_replace('#(<[^>]+?[\x00-\x20"\'])(?:on|xmlns)[^>]*+>#iu', '$1>', $value);
        return $value;
    }

}
